package udpdemo.multicast;

import java.io.IOException;
import java.net.*;

public class test1 {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();

        String s = "123";
        byte[] bytes = s.getBytes();
        DatagramPacket dp = new DatagramPacket(bytes,bytes.length,InetAddress.getByName("224.0.1.0"),10086);

        ds.send(dp);

        ds.close();
    }
}
